package com.lancoo.znbkxx.teacher.aibkTestCoach.aibkTools

import androidx.appcompat.app.AppCompatActivity
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.bindLifeCycle
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.viewModel.MarkViewModel

/*
* 提交操作日志
* */
object adjustAudioSpeedHelp {

    fun adjustAudioSpeed(activity: AppCompatActivity,
                      mViewModel: MarkViewModel,
                      audioSpeed: Double,
                      paperId: String,
                      quesId: String
    ) {
        mViewModel.adjustAudioSpeed(audioSpeed,paperId,quesId)
                .doOnSubscribe {
                }.bindLifeCycle(activity)
                .subscribe(
                        {
//                            MyToast.showToast(""+operationId)
                        },
                        {
//                            MyToast.showToast(it.message)
                        })
    }


}